package huadi.concurrent.join;

public class Join {
    public static void main(String[] a) {

        Thread subThread = new SubThread();
        subThread.start();
        try {
            subThread.join();
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
        System.out.println("Main thread says: bye.");
    }
}

